package com.itheima.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.goods.pojo.Category;
import entity.PageResult;
import entity.Result;


public interface CategoryService extends IService<Category> {
    Result findAll();

    Result findByParentId(Integer parentId);

    Result addCategory(Category category);

    PageResult findPage(Integer currentPage, Integer pageSize, Integer queryString);

    Result findById(Integer id);

    Result updateCategory(Integer id , Category category);

    Result deleteCategory(Integer id);
}
